package com.lishe.lishe.jiguang.service;

import android.content.Context;
import android.util.Log;

import java.util.ArrayList;
import java.util.List;

import cn.jpush.android.api.JPushMessage;
import cn.jpush.android.service.JPushMessageReceiver;

/**
 * Created by shino on 2017/11/14.
 */

public class JiGuangTagAliasService extends JPushMessageReceiver {
    public JiGuangTagAliasService() {
        super();
    }

    @Override
    public void onTagOperatorResult(Context context, JPushMessage jPushMessage) {
        super.onTagOperatorResult(context, jPushMessage);
        List<String> tags = new ArrayList<>(jPushMessage.getTags());
        if (tags != null) {
            for (String tag : tags) {
                Log.e("极光Checktag", tag);
            }
        }
    }

    @Override
    public void onCheckTagOperatorResult(Context context, JPushMessage jPushMessage) {
        super.onCheckTagOperatorResult(context, jPushMessage);
        List<String> tags = new ArrayList<>(jPushMessage.getTags());
        if (tags != null) {
            for (String tag : tags) {
                Log.e("极光Checktag", tag);
            }
        }
    }

    @Override
    public void onAliasOperatorResult(Context context, JPushMessage jPushMessage) {
        super.onAliasOperatorResult(context, jPushMessage);
        List<String> alias = new ArrayList<>(jPushMessage.getTags());
        if (alias != null) {
            for (String alia : alias) {
                Log.e("极光alia", alia);
            }
        }
    }

}
